﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Site.Master" CodeBehind="ResourcesView.aspx.cs" Inherits="WebView_SSResourceManager.ResourcesView" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="MainContent">
    
        
    <div id="ListView">
        
        <div id="checkBoxPanel">
            <asp:Label ID="lbl_OnlyLockedText" runat="server" Text="Show only active resources"></asp:Label>
            <asp:CheckBox ID="chB_ShowActive" runat="server" />
            </div>
     
        <asp:ListView ID="lstV_ResourcesView" runat="server">
        
            
          <EmptyDataTemplate>
                <table id="Table1" runat="server" style="">
                    <tr>
                        <td> Sorry, but resources are not available </td>
                    </tr>
                </table>
            </EmptyDataTemplate>

            <ItemTemplate>
                <tr style="">
                    <td>
                        <a href="ResourceView.aspx?<%# Eval("id") %>"> <img src='../Images/navigate_resource.png' alt="go" width="30" height="30"> </a>
                    </td>
                    <td>
                        <asp:Label runat="server" Text='<%# Eval("Name") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" Text='<%# Eval("StartTime") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" Text='<%# Eval("EndTime") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" Text='<%# Eval("TimeOfUsing") %>' />
                    </td>
                    <td>
                        <asp:Label runat="server" Text='<%# Eval("UserCount") %>' />
                    </td>
                    <td>
                        <asp:CheckBox runat="server" Checked='<%# Eval("OnlyAutoTime") %>' Enabled="false" />
                    </td>
                    
                </tr>
            </ItemTemplate>
            
            <LayoutTemplate>
                <table id="listTable" runat="server">
                    <tr id="Header" runat="server">
                        <td id="Td1" runat="server">
                            <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
                                <tr id="Tr2" runat="server" style="">
                                    <th id="Th1" runat="server">
                                        Navigate</th>
                                    <th id="Th2" runat="server">
                                        Name</th>
                                    <th id="Th3" runat="server">
                                        Openeing time</th>
                                    <th id="Th4" runat="server">
                                        Closing time</th>
                                    <th id="Th5" runat="server">
                                        Maximum usage time</th>
                                    <th id="Th6" runat="server">
                                        The number of simultaneous users</th>
                                    <th id="Th7" runat="server">
                                        Auto time</th>
                                    </tr>
                                <tr ID="itemPlaceholder" runat="server">
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr id="Tr3" runat="server">
                        <td id="Td2" runat="server" style="">
                        </td>
                    </tr>
                </table>
            </LayoutTemplate>

       </asp:ListView>

        <asp:Button ID="btn_RefreshList" runat="server" Text="Refresh list" 
            onclick="BtnRefreshListClick" />

        </div>
        
  </asp:Content>

